import java.util.Scanner;


public class day3 {
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入三位的姓名(每行输入一个人):");
        String name1 = sc.nextLine();//姓名
        String name2 = sc.nextLine();
        String name3 = sc.nextLine();

        System.out.println("三位的年龄:");
        int age1 = sc.nextInt();//年龄
        int age2 = sc.nextInt();
        int age3 = sc.nextInt();

        System.out.println("三位的身高(cm):");
        double height1 = sc.nextDouble();//身高
        double height2 = sc.nextDouble();
        double height3 = sc.nextDouble();

        System.out.println("三位的体重(kg):");
        double weight1 = sc.nextDouble();//体重
        double weight2 = sc.nextDouble();
        double weight3 = sc.nextDouble();

        System.out.println("三位的性别(暂不支持LGBT):");
        String sex1 = sc.nextLine();//性别
        String sex2 = sc.nextLine();
        String sex3 = sc.nextLine();

        double BIM1=weight1/(height1/100)*(height1/100);
        double BIM2=weight2/(height2/100)*(height2/100);
        double BIM3=weight3/(height3/100)*(height3/100);


        System.out.println("姓名:"+name1+" BIM:"+BIM1);
        System.out.println("姓名:"+name2+" BIM:"+BIM2);
        System.out.println("姓名:"+name3+" BIM:"+BIM3);

    }
}
